<div class="table">
<?php if ($blog_header!=''): ?>
	<table cellpadding="5" cellspacing="0" class="blog_info" width="100%">
		<td width="18%" style="padding-top: 30px;" valign="top" align="right">
			<div id="karma_value">
				<small><?= _l('lbl_karma_blog'); ?>:</small>
				<div class="value_nah">
				<?php if($karma_bar=='no'):?>
					<span style="color:#CCCCCC">&#8593;</span>
					<span style="color:#6DA92C"><?=$blog_karma?></span>
					<span style="color:#CCCCCC">
				<?php elseif($karma_bar=='bad'):?>
					<span title="повысить карму" onclick="vote_blog_karma(1, '<?=$blog_name?>')" style="color:#B5D08C">
						&#8593;
					</span>
					<span style="color:#DE4E29"><?=$blog_karma?></span>
					<span title="понизить карму" onclick="vote_blog_karma(0, '<?=$blog_name?>')" style="color:#D9A497">
				<?php elseif($karma_bar=='good'):?>
					<span title="повысить карму" onclick="vote_blog_karma(1, '<?=$blog_name?>')" style="color:#B5D08C">
						&#8593;
					</span>
					<span style="color:#7DC62D"><?=$blog_karma?></span>
					<span title="понизить карму" onclick="vote_blog_karma(0, '<?=$blog_name?>')" style="color:#D9A497">
				<?php endif; ?> 
				 	&#8595;</span>
				</div>
		 </div>
		</td>
	    <td width="82%">
	    	<h2>
	    		<img src="<?= $blog_avatar ?>" align="absmiddle" style="margin: 0px 10px 0px 10px;" />
	    		<?= _l('lbl_blog'); ?> 
	    		&laquo;
	    			<a class="h2a" href="/blog/<?=$blog_name?>/"><?=$blog_header?></a>
	    		&raquo; 
	    		<acronym title="читателей">(<?=$blog_users?>)</acronym> 
	    		<a href="/api/rss/<?=$blog_name?>/" title="RSS блога" rel="alternate" type="application/rss+xml">
	    			<img src="/images/rss.gif" align="baseline" />
	    		</a> 
	    		<span class="community_options" id="blog_options"><?=$options?></span>
	    	</h2>
	    	<?=$blog_desc?>
	    </td>        
	</table>
<?php endif; ?>

<h5><?=$art_header?></h5>
	<div class="table_body">
		<?php if ($image != ''): ?> 
			<a href="/<?=$image?>" target="_blank">
				<img src="/thumbs.php?x=200&y=200&url=<?=$image?>" align="left" alt="<?=$art_header?>">
			</a>
	  <?php endif; ?>	
	  <?=$body?>
	</div>
	<div class="table_bottom">
	<div class="tags"><?=$tags?></div>
		<table cellpadding="0" cellspacing="0" class="art_bottom">
			<tr>
				<td>
					<img src="/images/user.gif" align="bottom" title="<?=$author_name?>" /> 
					<a href="/user/<?=$author_id?>.html"><?=$author_name?></a> 
					(<?=$date?>)
				</td>
		        <td>
		        	<img src="/static/images/print.gif" align="bottom" alt="<?= _l('lbl_print'); ?>" /> 
		        	<a href="/api/print/<?=$art_id?>/" target="_blank"><?= _l('lbl_print'); ?></a>
		        </td>
				<td><?=$rating?></td>
			</tr>
		</table>
	</div>
</div>

<p>
	<h5><?= _l('lbl_comments'); ?>: 
		<a href="/api/rss/comments/articles/<?=$art_id?>/" rel="alternate" type="application/rss+xml">
			<img src="/images/rss.gif" align="baseline" title="RSS" />
		</a>
	</h5>
</p>
